import {
	request
} from "@/common/config.js"


//点击搜索到的值
export function getmylist(params) {
	return request({
		url: `/cloudsearch`,
		params,
		method: "get"
	})
}


export function _getAlbum(id) {
	return request({
		url: `/album?id=${id}`,
		method: 'get'
	})
}

export function _getAlbumDetail(id) {
	return request({
		url: `/digitalAlbum/detail?id=${id}`,
		method: 'get'
	})
}

// 获取专辑的收藏、评论、分享
export function _getMunefun(id) {
	return request({
		url: `/album/detail/dynamic?id=${id}`,
		method: 'get'
	})
}

// 收藏/取消收藏专辑
export function _getCollect(t, id) {
	return request({
		url: `/album/sub?t=${t}&id=${id}`,
		method: 'get'
	})
}
